#include "include/person.h"

Person::Person(string name, int age) {
	this->name = name;
	this->age = age;
	level = 0;
}

Person::Person() {
	name = "";
	age = 0;
	level = 1;

}

bool Person::operator==(const Person& e) {
	if (level == e.level)
		return true;

	return false;
}

int Person::getAge()const {
	return age;
}

ostream& operator<<(ostream& os, const Person& p) {
    os << "姓名：" << p.name << "年龄：" << p.age;
	return os;
}
